package com.sskj.trafficcontrol.service.impl;

import com.sskj.trafficcontrol.dao.TcUserCarDao;
import com.sskj.trafficcontrol.service.UserCarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "userCarService")
public class UserCarServiceImpl implements UserCarService {

    @Autowired
    private TcUserCarDao tcUserCarDao;

    @Override
    public String getCarNumber(String open_id) {
        return tcUserCarDao.getCarNumber(open_id);
    }

    @Override
    public int editCarNumber(String open_id, String carNumber) {
        return tcUserCarDao.editCarNumber(open_id,carNumber);
    }

    @Override
    public int bindCarNumber(String open_id, String carNumber,String userMobile) {
        return tcUserCarDao.addCarNumber(open_id,carNumber,userMobile);
    }
}
